package view.confirmaciones;

import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Toolkit;

public class RecadoEnviado {

	private JFrame frame;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					RecadoEnviado window = new RecadoEnviado();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public RecadoEnviado() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setIconImage(Toolkit.getDefaultToolkit().getImage(RecadoEnviado.class.getResource("/Icon_/Good-mark.gif")));
		frame.setVisible(true);
		frame.setResizable(false);
		frame.setBounds(100, 100, 341, 113);
		frame.setLocationRelativeTo(null);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);

		JLabel lblelMensajeSe = new JLabel("El mensaje se ha enviado correctamente");
		lblelMensajeSe.setFont(new Font("Tahoma", Font.PLAIN, 14));
		lblelMensajeSe.setBounds(12, 22, 267, 16);
		frame.getContentPane().add(lblelMensajeSe);

		JButton btnAceptar = new JButton("Aceptar");
		btnAceptar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				frame.dispose();
			}
		});
		btnAceptar.setBounds(236, 51, 89, 23);
		frame.getContentPane().add(btnAceptar);
	}
}
